﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F85 RID: 3973
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicUnitComposeCsReq : IMessage<RogueMagicUnitComposeCsReq>, IMessage, IEquatable<RogueMagicUnitComposeCsReq>, IDeepCloneable<RogueMagicUnitComposeCsReq>, IBufferMessage
	{
		// Token: 0x1700325C RID: 12892
		// (get) Token: 0x0600B1FB RID: 45563 RVA: 0x001E0F44 File Offset: 0x001DF144
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicUnitComposeCsReq> Parser
		{
			get
			{
				return RogueMagicUnitComposeCsReq._parser;
			}
		}

		// Token: 0x1700325D RID: 12893
		// (get) Token: 0x0600B1FC RID: 45564 RVA: 0x001E0F4B File Offset: 0x001DF14B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicUnitComposeCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700325E RID: 12894
		// (get) Token: 0x0600B1FD RID: 45565 RVA: 0x001E0F5D File Offset: 0x001DF15D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicUnitComposeCsReq.Descriptor;
			}
		}

		// Token: 0x0600B1FE RID: 45566 RVA: 0x001E0F64 File Offset: 0x001DF164
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitComposeCsReq()
		{
		}

		// Token: 0x0600B1FF RID: 45567 RVA: 0x001E0F77 File Offset: 0x001DF177
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitComposeCsReq(RogueMagicUnitComposeCsReq other) : this()
		{
			this.magicUnitIdList_ = other.magicUnitIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B200 RID: 45568 RVA: 0x001E0FA1 File Offset: 0x001DF1A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitComposeCsReq Clone()
		{
			return new RogueMagicUnitComposeCsReq(this);
		}

		// Token: 0x1700325F RID: 12895
		// (get) Token: 0x0600B201 RID: 45569 RVA: 0x001E0FA9 File Offset: 0x001DF1A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> MagicUnitIdList
		{
			get
			{
				return this.magicUnitIdList_;
			}
		}

		// Token: 0x0600B202 RID: 45570 RVA: 0x001E0FB1 File Offset: 0x001DF1B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicUnitComposeCsReq);
		}

		// Token: 0x0600B203 RID: 45571 RVA: 0x001E0FBF File Offset: 0x001DF1BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicUnitComposeCsReq other)
		{
			return other != null && (other == this || (this.magicUnitIdList_.Equals(other.magicUnitIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B204 RID: 45572 RVA: 0x001E0FF4 File Offset: 0x001DF1F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.magicUnitIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B205 RID: 45573 RVA: 0x001E1028 File Offset: 0x001DF228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B206 RID: 45574 RVA: 0x001E1030 File Offset: 0x001DF230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B207 RID: 45575 RVA: 0x001E1039 File Offset: 0x001DF239
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.magicUnitIdList_.WriteTo(ref output, RogueMagicUnitComposeCsReq._repeated_magicUnitIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B208 RID: 45576 RVA: 0x001E1060 File Offset: 0x001DF260
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.magicUnitIdList_.CalculateSize(RogueMagicUnitComposeCsReq._repeated_magicUnitIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B209 RID: 45577 RVA: 0x001E1099 File Offset: 0x001DF299
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicUnitComposeCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.magicUnitIdList_.Add(other.magicUnitIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B20A RID: 45578 RVA: 0x001E10C7 File Offset: 0x001DF2C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B20B RID: 45579 RVA: 0x001E10D0 File Offset: 0x001DF2D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U && num != 34U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.magicUnitIdList_.AddEntriesFrom(ref input, RogueMagicUnitComposeCsReq._repeated_magicUnitIdList_codec);
				}
			}
		}

		// Token: 0x04004804 RID: 18436
		private static readonly MessageParser<RogueMagicUnitComposeCsReq> _parser = new MessageParser<RogueMagicUnitComposeCsReq>(() => new RogueMagicUnitComposeCsReq());

		// Token: 0x04004805 RID: 18437
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004806 RID: 18438
		public const int MagicUnitIdListFieldNumber = 4;

		// Token: 0x04004807 RID: 18439
		private static readonly FieldCodec<uint> _repeated_magicUnitIdList_codec = FieldCodec.ForUInt32(34U);

		// Token: 0x04004808 RID: 18440
		private readonly RepeatedField<uint> magicUnitIdList_ = new RepeatedField<uint>();
	}
}
